import java.util.Arrays;

/**
 * Created by ospip on 2017/10/16.
 * Copyright (c) 2017 LLAP. All rights reserved.
 */
public class Keyword {
    String[] list = {"abstract", "assert", "boolean", "break", "byte", "case", "catch", "char", "class", "const", "continue", "default", "do", "double", "else", "enum", "extends", "final", "finally", "float", "for", "goto", "if", "implements", "import", "instanceof", "int", "interface", "long", "native", "new", "package", "private", "protected", "public", "return", "short", "static", "strictfp", "super", "switch", "synchronized", "this", "throw", "throws", "transient", "try", "void", "volatile", "while"};

    public Keyword() {
        Arrays.sort(list);
    }

    public int search(String needle) {
        return Arrays.binarySearch(list, needle);
    }

    public static void main(String[] args) {
        Keyword k = new Keyword();
        System.out.println(k);
    }
}

